home *** CD-ROM | disk | FTP | other *** search
/ Programmers Heaven 2 / Programmers Heaven 2.iso / files / graphics / library / wgt51_r2.zip / WGT5 / DOC / REF.TXT < prev    next >
Text File  |  1996-08-02  |  25KB  |  970 lines

  1. WGT 5.1 Quick Reference
  2. -----------------------
  3.  
  4.  
  5. WGT5_WC.LIB
  6. -----------
  7.  
  8. unsigned int getmemfree (void)
  9. - Returns the number of bytes available to the program.
  10.  
  11.  
  12. void   installkbd (void)
  13. - Installs a keyboard handler which permits multiple keypresses at the
  14.   same time.
  15.  
  16.  
  17. void * lib2buf (char *filename)
  18. - Allocates memory for a file, and loads it into memory.
  19.  
  20.  
  21. void   mdeinit (void)
  22. - Removes the custom mouse handler.
  23.  
  24.  
  25. short  minit (void)
  26. - Initializes the mouse driver.
  27.  
  28.  
  29. void   moff (void)
  30. - Turns off the display of the mouse cursor.
  31.  
  32.  
  33. void   mon (void)
  34. - Turns on the display of the mouse cursor.
  35.  
  36.  
  37. void   mouseshape (short x_hotspot, short y_hotspot,
  38.                    unsigned short *mousebitmap)
  39. - Sets the bitmap shape and hotpot of the mouse cursor.
  40.  
  41.  
  42. void   msetbounds (short x, short y, short x2, short y2)
  43. - Sets the movement boundaries of the mouse cursor.
  44.  
  45.  
  46. void   msetspeed (short x_speed, short y_speed)
  47. - Sets the speed of the mouse.
  48.  
  49.  
  50. void   msetthreshhold (short speed)
  51. - Sets the speed the mouse must reach before it doubles its movements.
  52.  
  53.  
  54. void   msetxy (short x, short y)
  55. - Sets the screen location of the mouse cursor.
  56.  
  57.  
  58. void   noclick (void)
  59. - Waits until all buttons are released.
  60.  
  61.  
  62. void   setlib (char *libraryname)
  63. - Sets the WGT Data Library name.
  64.  
  65.  
  66. void   setpassword (char *password)
  67. - Sets the WGT Data Library password.
  68.  
  69.  
  70. void   uninstallkbd (void)
  71. - Removes the WGT custom keyboard handler.
  72.  
  73.  
  74. void   vga256 (void)
  75. - Initializes the 320x200x256 VGA/MCGA graphics mode.
  76.  
  77.  
  78. char   vgadetected (void)
  79. - Determines if a VGA card is available.
  80.  
  81.  
  82. block  wallocblock (short width, short height)
  83. - Allocates enough memory for an image of given dimensions and returns
  84.   a pointer.
  85.  
  86.  
  87. void   wbar (short x1, short y1, short x2, short y2)
  88. - Draws a filled rectangle.
  89.  
  90.  
  91. void   wbezier (tpolypoint *rawpts, short numraw, tpolypoint *curvepts,
  92.         short numcurve)
  93. - Calculates the points of a bezier curve.
  94.  
  95.  
  96. void   wbutt (short x1, short y1, short x2, short y2)
  97. - Draws a 3-dimensional button.
  98.  
  99.  
  100. void   wcircle (short x_center, short y_center, short radius)
  101. - Draws a circle with a given radius.
  102.  
  103.  
  104. void   wclip (short x1, short y1, short x2, short y2)
  105. - Sets the current clipping area for all graphics pages.
  106.  
  107.  
  108. void   wcls (unsigned char col)
  109. - Clears the currently select graphics page with a specified color number.
  110.  
  111.  
  112. void   wcolrotate (unsigned char start, unsigned char finish, short dir,
  113.            color *pal)
  114. - Cycles the colors between two indices in a palette.
  115.  
  116.  
  117. void   wcopyscreen (short x1, short y1, short x2, short y2, block source,
  118.                     short destx, short desty, block destination)
  119. - Copies a section of one block onto a different block.
  120.  
  121.  
  122. void   wdeinitpoly (void)
  123. - Deinitializes the WGT polygon system and frees internal buffers.
  124.  
  125.  
  126. void   wdeinit_triangle_renderer (void)
  127. - Deinitializes the WGT triangle rendering system and frees internal buffers.
  128.  
  129.  
  130. void   wdissolve (block sourceimage, short *pattern, short speed)
  131. - Dissolves a block onto the active display page, with a user-defined
  132.   pattern.
  133.  
  134.  
  135. void   wdonetimer (void)
  136. - Removes the custom timer interrupt.
  137.  
  138.  
  139. void   wdraw_scanpoly (short x, short y, wscanpoly *scanpoly,
  140.             void (*customline)(short x1, short x2, short y))
  141. -Draws a concave polygon which was previously scan converted with the
  142.  wscan_convertpoly routine.
  143.  
  144.  
  145. void   wellipse (short x_center, short y_center, short x_radius,
  146.                  short y_radius)
  147. - Draws a hollow ellipse.
  148.  
  149.  
  150. void   wfade_between (unsigned char start, unsigned char finish, short speed,
  151.               color *pal1, color *pal2)
  152. - Gradually fades in a group of colors from one palette to another
  153.   palette using the specified speed.
  154.  
  155.  
  156. void   wfade_between_once (unsigned char start, unsigned char finish,
  157.               color *pal1, color *pal2)
  158. - Fades in a group of colors from one palette to another, performing only
  159.  1/64th of the fade operation.
  160.  
  161.  
  162. void   wfade_in (unsigned char start, unsigned char finish, short speed,
  163.          color *pal)
  164. - Gradually fades in a group of colors from black to a palette variable
  165.   using a specified speed.
  166.  
  167.  
  168. void   wfade_in_once (unsigned char start, unsigned char finish,
  169.               color *pal, color *temppal)
  170. - Fades in a group of colors from black to a palette variable, performing
  171.  only 1/64th of the fade operation.
  172.  
  173.  
  174. void   wfade_out (unsigned char start, unsigned char finish, short speed,
  175.           color *pal)
  176. - Gradually fades a group of colors from a palette variable to black, using
  177.   a specified speed.
  178.  
  179.  
  180. void   wfade_out_once (unsigned char start, unsigned char finish,
  181.                color *pal)
  182. - Fades out a group of colors from a palette variable to black, performing
  183.   only 1/64th of the fade operation.
  184.  
  185.  
  186. void   wfastputpixel (short x, short y)
  187. - Plots a pixel at the given screen coordinate without clipping.
  188.  
  189.  
  190. void   wfill_circle (short x_center, short y_center, short radius)
  191. - Draws a filled circle given a center and radius.
  192.  
  193.  
  194. void   wfill_ellipse (short x_center, short y_center, short x_radius,
  195.                       short y_radius)
  196. - Draws a filled ellipse given a center, a horizontal radius, and a vertical
  197.   radius.
  198.  
  199.  
  200. void   wflashcursor (void)
  201. - Flash the cursor using the values set by wsetcursor and the global
  202.   variable curspeed.
  203.  
  204.  
  205. void   wfline (short x1, short y1, short x2, short y2)
  206. - Draws a line between two points, without clipping.
  207.  
  208.  
  209. void   wflipblock (block image, short direction)
  210. - Flips a block in one of two directions.  The block is physically changed
  211.   in memory, not on the screen.
  212.  
  213.  
  214. void   wfree_scanpoly (wscanpoly *scanpoly)
  215. - Frees memory used by a polygon buffer.
  216.  
  217.  
  218. void   wfreeblock (block image)
  219. - Releases memory used to store an image.
  220.  
  221.  
  222. void   wfreefont (wgtfont font)
  223. - Frees memory previously allocated for a font.
  224.  
  225.  
  226. void   wfreesprites (block *image_array, short start, short end)
  227. - Frees memory from an array of blocks.
  228.  
  229.  
  230. short  wget_capslock (void)
  231. - Returns the state of the Capslock key.
  232.  
  233.  
  234. unsigned char wget_imagebit (block image)
  235. - Retrieves a byte of information from the end of allocated memory from
  236.   an image.
  237.  
  238.  
  239. unsigned char wget_imagebyte (block image)
  240. - Retrieves a byte of information from the end of allocated memory from
  241.   an image.
  242.  
  243.  
  244. short  wget_lalt (void)
  245. - Returns the state of the left Alt key.
  246.  
  247.  
  248. short  wget_lctrl (void)
  249. - Returns the state of the Left Control key.
  250.  
  251.  
  252. short  wget_lshift (void)
  253. - Returns the state of the Left Shift key.
  254.  
  255.  
  256. short  wget_numlock (void)
  257. - Returns the state of the Numlock key.
  258.  
  259.  
  260. short  wget_ralt (void)
  261. - Returns the state of the Right Alt key.
  262.  
  263.  
  264. short  wget_rctrl (void)
  265. - Returns the state of the Right Control key.
  266.  
  267.  
  268. short  wget_rshift (void)
  269. - Returns the state of the Right Shift key.
  270.  
  271.  
  272. short  wget_scrlock (void)
  273. - Returns the state of the Scroll Lock key.
  274.  
  275.  
  276. short  wgetblockheight (block image)
  277. - Returns height of a previously stored block.
  278.  
  279.  
  280. short  wgetblockwidth (block image)
  281. - Returns width of a previously stored block.
  282.  
  283.  
  284. short  wgetmode (void)
  285. - Returns the current video mode number.
  286.  
  287.  
  288. unsigned char wgetpixel (short x, short y)
  289. - Gets the pixel value at the given screen coordinate.
  290.  
  291.  
  292. short  wgettextheight (char *string, wgtfont font)
  293. - Returns the maximum height of the string.
  294.  
  295.  
  296. short  wgettextwidth (char *string, wgtfont font)
  297. - Returns the width of the string.
  298.  
  299.  
  300. void   wgouraudpoly (tpolypoint *vertexlist, short numvertex, short x,
  301.                      short y)
  302. - Draws a Gouraud shaded convex polygon.
  303.  
  304.  
  305. void   wgtprintf (short x, short y, wgtfont font, char *fmt, ... )
  306. - Prints text using the standard printf format.
  307.  
  308.  
  309. void   whline (short x1, short x2, short y)
  310. - Draws a horizontal line between two points.
  311.  
  312.  
  313. void   whollowpoly (tpolypoint *vertexlist, short numvertex, short x,
  314.                     short y, short closemode)
  315. - Draws a hollow polygon.
  316.  
  317.  
  318. void   winitpoly (short maxrows)
  319. - Initializes the WGT polygon system to a maximum number of scanlines.
  320.  
  321.  
  322. void   winittimer (void)
  323. - Installs the custom timer interrupt.
  324.  
  325.  
  326. void   winit_triangle_renderer (short maxrows)
  327. - Initializes the WGT triangle rendering system to a maximum number
  328.   of scanlines.
  329.  
  330.  
  331. void   wline (short x1, short y1, short x2, short y2)
  332. - Draws a line between two points.
  333.  
  334.  
  335. block  wloadblock (char *filename)
  336. - Loads a block file from disk into memory.
  337.  
  338.  
  339. block  wloadbmp (char *filename, color *pal)
  340. - Loads a BMP image and converts it into block format.
  341.  
  342.  
  343. block  wloadcel (char *filename, color *pal)
  344. - Loads a CEL file (Autodesk Animator format) from dsik into memory.
  345.  
  346.  
  347. wgtfont wloadfont (char *filename)
  348. - Loads a bitmapped font from disk and returns a pointer to it.
  349.  
  350.  
  351. block  wloadiff (char *filename, color *pal)
  352. - Loads an Amiga IFF/LBM format image and its associated palette.
  353.  
  354.  
  355. block  wloadpak (char *filename)
  356. - Loads a compressed PAK file from disk into memory.
  357.  
  358.  
  359. void   wloadpalette (char *filename, color *pal)
  360. - Loads a palette from disk into a palette variable.
  361.  
  362.  
  363. block  wloadpcx (char *filename, color *pal)
  364. - Loads a PCX file from disk into memory.
  365.  
  366.  
  367. short  wloadsprites (color *pal, char *filename, block *image_array,
  368.                      short start, short end)
  369. - Loads a sprite file.
  370.  
  371.  
  372. block  wnewblock (short x1, short y1, short x2, short y2)
  373. - Captures a section of the screen into a block.
  374.  
  375.  
  376. void   wnormscreen (void)
  377. - Sets the active page back to the original visual page.
  378.  
  379.  
  380. void   wouttextxy (short x, short y, wgtfont font, char *string)
  381. - Outputs a string of text.
  382.  
  383.  
  384. void   wpan (unsigned short pan_offset)
  385. - Changes the offset of the visual screen.
  386.  
  387.  
  388. void   wputblock (short x, short y, block image, short method)
  389. - Displays a block onto the current graphics page.
  390.  
  391.  
  392. void   wputblock_shade (short x, short y, block image, block shadetable,
  393.             int mode)
  394. - Draws a block onto the current graphics page, using a shade table.
  395.  
  396.  
  397. void   wputpixel (short x, short y)
  398. - Plots a pixel at the given screen coordinate.
  399.  
  400.  
  401. void   wreadpalette (unsigned char start, unsigned char finish, color *pal)
  402. - Reads the current palette into a palette variable.
  403.  
  404.  
  405. void   wrectangle (short x1, short y1, short x2, short y2)
  406. - Draws a rectangle using the current color and graphics page.
  407.  
  408.  
  409. void   wregionfill (short x, short y)
  410. - Fills an area of the screen bounded by any color.
  411.  
  412.  
  413. void   wremap (color *pal1, block image, color *pal2)
  414. - Remaps the colors of a block or the visual screen to a new palette.
  415.  
  416.  
  417. void   wresize (int x1, int y1, int x2, int y2, block image,
  418.         short mode)
  419. - Draws a previously stored image on the screen to fit within a given
  420.   boundary.
  421.  
  422.  
  423. void   wresize_column (int x, int y, int y2, block image,
  424.                short column, short mode)
  425. - Resizes a single column of a bitmap to a new height on the screen.
  426.  
  427.  
  428. void   wresize_shade (short x1, short y1, short x2, short y2,
  429.               block image, unsigned char *shadetable,
  430.               short mode)
  431. - Draws a previously stored image on the screen to fit within a given
  432.   boundary, using a shade table.
  433.  
  434.  
  435. void   wretrace (void)
  436. -Waits for the vertical retrace.
  437.  
  438.  
  439. short  wsaveblock (char *filename, block image)
  440. - Saves a block to a disk file in raw format.
  441.  
  442.  
  443. short  wsavebmp (char *filename, block image, color *pal)
  444. - Saves a block image to disk in BMP format.
  445.  
  446.  
  447. short  wsavecel (char *filename, block image, color *pal)
  448. - Saves a CEL file (Autodesk Animator format) to disk.
  449.  
  450.  
  451. short  wsavepak (char *filename, block image)
  452. - Saves a block to disk in compressed format.
  453.  
  454.  
  455. void   wsavepalette (char *filename, color *pal)
  456. - Save a palette variable's contents to a file.
  457.  
  458.  
  459. short  wsavepcx (char *filename, block image, color *pal)
  460. - Saves a block to disk in the PCX compressed format.
  461.  
  462.  
  463. short  wsavesprites (color *pal, char *filename, block *image_array,
  464.                      short start, short end)
  465. - Saves a sprite file using a palette array and a set of blocks.
  466.  
  467.  
  468. void   wscan_convertpoly (tpolypoint *vertexlist, short numvertex,
  469.             wscanpoly *scanpoly)
  470. - Scan converts a concave polygon into a rendered polygon buffer.
  471.  
  472.  
  473. void   wset_capslock (short state)
  474. - Sets the state of the capslock key.
  475.  
  476.  
  477. void   wset_imagebyte (block image, unsigned char status)
  478. - Stores a byte of information at the end of allocated memory for an image.
  479.  
  480.  
  481. void   wset_numlock (short state)
  482. - Sets the state of the numlock key.
  483.  
  484.  
  485. void   wset_scrlock (short state)
  486. - Sets the state of the scroll lock key.
  487.  
  488.  
  489. void   wsetcolor (unsigned char col)
  490. - Sets the current drawing color.
  491.  
  492.  
  493. void   wsetcursor (short start, short end)
  494. - Sets the shape of the software emulated text cursor.
  495.  
  496. void   wsetmode (short mode)
  497. - Sets the video mode.
  498.  
  499.  
  500. void   wsetpalette (unsigned char start, unsigned char finish, color *pal)
  501. - Sets a group of colors from a specified palette variable.
  502.  
  503.  
  504. void   wsetrgb (unsigned char num, unsigned char red, unsigned char green, 
  505.         unsigned char blue, color *pal)
  506. - Sets a color's red, green, and blue values.
  507.  
  508.  
  509. void   wsetscreen (block image)
  510. - Makes all drawing procedures use a specified destination video buffer.
  511.  
  512.  
  513. void   wsettimerspeed (int speed)
  514. - Sets the custom timer interrupt to run at a different speed.
  515.  
  516.  
  517. void   wskew (short x, short y, block image, short degrees)
  518. - Skews a block sideways.
  519.  
  520.  
  521. void   wsline (short x1, short y1, short x2, short y2, short *y_array)
  522. - Stores the points of a line into an array instead of plotting them on
  523.   the screen.
  524.  
  525.  
  526. void   wsolidpoly(tpolypoint *vertexlist, short numvertex, short x, short y,
  527.             void (*customline)(short x1, short x2, short y))
  528. - Draws a filled convex polygon.
  529.  
  530.  
  531. void   wstarttimer (wtimerproc timer, int speed)
  532. - Installs a custom timer interrupt at the given speed.
  533.  
  534.  
  535. void   wstoptimer (void)
  536. - Resets a custom timer interrupt to an empty procedure.
  537.  
  538.  
  539. void   wstring (short x, short y, char *string, char *legal,
  540.                 short maxlength)
  541. - Reads in a string of text from the keyboard and displays both the text and
  542.   a simulated cursor on the graphics page.
  543.  
  544.  
  545. void   wstyleline (short x, short y, short x2, short y2,
  546.                    unsigned short style)
  547. - Draws a line from between two points with a line pattern.
  548.  
  549.  
  550. void   wtextbackground (unsigned char col)
  551. - Sets the background text color.
  552.  
  553.  
  554. void   wtextcolor (unsigned char col)
  555. - Selects the foreground character color.
  556.  
  557.  
  558. void   wtextgrid (short state)
  559. - Switches the text coordinate system between character and pixel based.
  560.  
  561.  
  562. void   wtexttransparent (short mode)
  563. - Sets text output to suppress the display of the foregound or background.
  564.  
  565.  
  566. void   wtexturedpoly (tpolypoint *vertexlist, short numvertex, short x,
  567.                       short y, block image, short mode)
  568. - Draws a texture mapped convex polygon.
  569.  
  570.  
  571. void   wtriangle_flat_shaded_texture (tpoint *ttri, block texture, 
  572.                       short shade, block shadetable)
  573. - Draws a flat shaded texture mapped triangle.
  574.  
  575.  
  576. void   wtriangle_gouraud (tpoint *gtri)
  577. - Draws a Gouraud shaded triangle.
  578.  
  579.  
  580. void   wtriangle_gouraud_shaded_texture (tpoint *ttri, block texture,
  581.                      block shadetable)
  582. - Draws a Gouraud shaded texture mapped triangle.
  583.  
  584.  
  585. void   wtriangle_solid (tpoint *ftri)
  586. - Draws a filled triangle.
  587.  
  588.  
  589. void   wtriangle_texture (tpoint *ttri, block texture)
  590. - Draws a texture mapped triangle.
  591.  
  592.  
  593. void   wtriangle_translucent_gouraud (tpoint *gtri, block shadetable)
  594. - Draws a translucent Gouraud shaded triangle.
  595.  
  596.  
  597. void   wtriangle_translucent_texture (tpoint *ttri, block texture,
  598.                   block shadetable)
  599. - Draws a translucent texture mapped triangle.
  600.  
  601.  
  602. void   wupdate_imagebytes (block *image_array, short start, short end)
  603. - Updates status bytes for an array of images.
  604.  
  605.  
  606. void   wvertres (short x1, short y1, short y2, block image)
  607. - Draws a previously stored image on the screen to fit within a given
  608.   boundary but only stretches it vertically.
  609.  
  610.  
  611. void   wwarp (short x1, short x2, short *top, short *bot, block image,
  612.               int mode)
  613. - Displays a block on the screen, using different heights for each column
  614.   displayed.
  615.  
  616.  
  617. void   wwipe (short x1, short y1, short x2, short y2, block image)
  618. - Draws a line but uses colors from another virtual screen.
  619.  
  620.  
  621. void   wxorbox (short x, short y, short x2, short y2, unsigned char col)
  622. - Draws a filled rectangle using exlusive-or mode.
  623.  
  624.  
  625. char *wfilesel (char *mask, char *title, short x, short y, block background)
  626. - Activates the WGT file selector routine.
  627.  
  628.  
  629.  
  630.  
  631.  
  632. WJOY_WC.LIB
  633. -----------
  634.  
  635. short     wcalibratejoystick (joystick *joy)
  636. - Finds out the coordinate range of the joystick.
  637.  
  638.  
  639. short     wcheckjoystick (void)
  640. - Determines which joysticks are connected.
  641.  
  642.  
  643. void      winitjoystick (joystick *joy, short joynum)
  644. - Initializes a joystick.
  645.  
  646.  
  647. short     wreadjoystick (joystick *joy)
  648. - Reads the information from a joystick.
  649.  
  650.  
  651.  
  652. WGT3D_WC.LIB
  653. ------------
  654.  
  655. void    winit3d (void)
  656. - Initializes the WGT 3D system.
  657.  
  658.  
  659. void    wrotatepoints (point3d *orig_pointlist, point3d *rotated_pointlist,
  660.                        short maxpoint)
  661. - Rotates a set of three dimensional points.
  662.  
  663.  
  664. void    wsetrotation (short rotate_x, short rotate_y, short rotate_z)
  665. - Sets the rotational amount in each axis that all points will be rotated
  666.   by.
  667.  
  668.  
  669.  
  670. WSCR_WC.LIB
  671. -----------
  672.  
  673. short    is_in_window (short currentwindow, short x, short y, short range)
  674. - Determines if the coordinate given is inside the scrolling window.
  675.  
  676.  
  677. short    soverlap (short s1, scrollsprite *wobjects1, block *sprites1,
  678.                    short s2, scrollsprite *wobjects2, block *sprites2)
  679. - Detects collisions between two scrollsprites.
  680.  
  681.  
  682. void     wcopymap (short sourcewindow, short destwindow)
  683. - Makes a scrolling window share a map with another window.
  684.  
  685.  
  686. void     wendscroll (short currentwindow)
  687. - Releases memory used for a scrolling window.
  688.  
  689.  
  690. void     wfreemap (wgtmap mapname)
  691. - Releases memory used to store a map file.
  692.  
  693.  
  694. unsigned short wgetworldblock (short currentwindow, short posx, short posy)
  695. - Returns the tile number at the given location in a map.
  696.  
  697.  
  698. unsigned char wgetworldpixel (short currentwindow, short x, short y)
  699. - Returns the color of a pixel within a map.
  700.  
  701.  
  702. void     winitscroll (short currentwindow, short mode, short link,
  703.                       short windowwidth, short windowheight, block *tileref)
  704. - Initializes one of the four scrolling windows.
  705.  
  706.  
  707. wgtmap   wloadmap (short currentwindow, char *filename, short *tiletypes,
  708.                    scrollsprite *wobjects)
  709. - Loads a tiled map into a scrolling window.
  710.  
  711.  
  712. void     wputworldblock (short currentwindow, short posx, short posy,
  713.                          unsigned short tilenum)
  714. - Changes the tile number at the given location on a map.
  715.  
  716.  
  717. void     wsavemap (short currentwindow, char *filename, wgtmap savemap,
  718.                    short *tiletypes, scrollsprite *wobjects, short numobj)
  719. - Saves a WGT map stored in memory into a file.
  720.  
  721.  
  722. short    wscreen_coordx (short currentwindow, short xcoord)
  723. - Returns the absolute X screen coordinate of a world coordinate.
  724.  
  725.  
  726. short    wscreen_coordy (short currentwindow, short ycoord)
  727. - Returns the absolute Y screen coordinate of a world coordinate.
  728.  
  729.  
  730. void     wscrollwindow (short currentwindow, short windowspeedx,
  731.                         short windowspeedy)
  732. - Scrolls a window by a distance vertically and horizontally.
  733.  
  734.  
  735. void     wshowobjects (short currentwindow, short start, short end,
  736.                        block *image_array, scrollsprite *wobjects)
  737. - Displays a range of scrollsprites on the scrolling window.
  738.  
  739.  
  740. void     wshowwindow (short currentwindow, short posx, short posy)
  741. - Sets the location of the world within a scrolling window.
  742.  
  743.  
  744.  
  745.  
  746. WMENU_WC.LIB
  747. ------------
  748.  
  749.  
  750. short  checkmenu (void)
  751. - Polls the mouse until the user clicks a button, and returns which menu
  752.   choice was selected.
  753.  
  754.  
  755. void   initdropdowns (void)
  756. - Initializes the drop down menu system.
  757.  
  758.  
  759. void   removemenubar (void)
  760. - Turns off the menu bar at the top of the screen.
  761.  
  762.  
  763. void   showmenubar (void)
  764. - Displays the menu bar at the top of the screen.
  765.  
  766.  
  767.  
  768. WSPR_WC.LIB
  769. -----------
  770.  
  771. void animate (short spritenum, char *animation_sequence)
  772. - Sets the animation sequence for a sprite.
  773.  
  774.  
  775. void animoff (short spritenum)
  776. - Freezes animation for the sprite.
  777.  
  778.  
  779. void animon (short spritenum)
  780. - Turns animation on for a sprite.
  781.  
  782.  
  783. void deinitialize_sprites (void)
  784. - Deinitializes the sprite system.
  785.  
  786.  
  787. void draw_sprites (int movement_multiplier)
  788. - Draws the sprites and updates movement and animation counters.
  789.  
  790.  
  791. void erase_sprites (void)
  792. - Erases the sprites from the screen.
  793.  
  794. void initialize_sprites (block *sprite_blocks)
  795. - Initializes the sprite library.
  796.  
  797.  
  798. void movex (short spritenum, char *movement_sequence)
  799. - Sets the horizontal movement of a sprite.
  800.  
  801.  
  802. void movexoff (short spritenum)
  803. - Turns horizontal movement for a sprite off.
  804.  
  805.  
  806. void movexon (short spritenum)
  807. - Turns horizontal movement for a sprite on.
  808.  
  809.  
  810. void movey (short spritenum, char *movement_sequence)
  811. - Sets the vertical movement of a sprite.
  812.  
  813.  
  814. void moveyoff (short spritenum)
  815. - Turns vertical movement for a sprite off.
  816.  
  817.  
  818. void moveyon (short spritenum)
  819. - Turns vertical movement for a sprite on.
  820.  
  821.  
  822. short overlap (short spritenum_1, short spritenum_2)
  823. - Tests if two sprites overlap each other on the screen.
  824.  
  825.  
  826. void spriteoff (short spritenum)
  827. - Turns off a sprite.
  828.  
  829.  
  830. void spriteon (short spritenum, short xcoord, short ycoord,
  831.                       short arrnumber)
  832. - Turns a sprite on at the given location.
  833.  
  834.  
  835.  
  836. WFLIC_WC.LIB
  837. ------------
  838.  
  839. int   openflic (char *filename, int mode_flic, int update_colors)
  840. - Opens a FLI or FLC animation file to be played.
  841.  
  842.  
  843. int   nextframe (void)
  844. - Advances an open animation file to the next frame.
  845.  
  846.  
  847. void  copyflic (void)
  848. - Copies the animation buffer to the visual screen.
  849.  
  850.  
  851. void  closeflic (void)
  852. - Closes a previously opened animation file.
  853.  
  854.  
  855.  
  856. WVESA_WC.LIB
  857. ------------
  858.  
  859. short  wvesa_bank (short bank)
  860. - Switches to a different bank on a SVGA card.
  861.  
  862.  
  863. short  wvesa_detected (void)
  864. - Returns 1 if a VESA (SVGA) driver is detected.
  865.  
  866.  
  867. short  wvesa_getmodeinfo (short mode)
  868. - Stores video mode information in the VESAmode global structure.
  869.  
  870.  
  871. short  wvesa_init (short mode)
  872. - Initializes a SVGA video mode using a VESA driver.
  873.  
  874.  
  875. void   wvesa_setlogical (unsigned short startline)
  876. - Sets the logical scanline to write to in the SVGA memory system.  This
  877.   can be larger than the physical screen dimensions.
  878.  
  879.  
  880. void   wvesa_setphysical (unsigned short left, unsigned short startline)
  881. - Sets the physical screen display region.  The leftmost pixel displayed
  882.   and the starting scanline are parameters.  Useful for page flipping
  883.   techniques.
  884.  
  885.  
  886. short  wvesa_setwidth (unsigned short width)
  887. - Sets the logical SVGA screen width.
  888.  
  889.  
  890. short  wvesa_supported (short mode)
  891. - Returns status of VESA and video card support for a given SVGA video mode.
  892.  
  893. Duplicates from WGT5_WC.LIB, but in SVGA:
  894.  
  895. void  wvesa_clip (short x, short y, short x2, short y2)
  896. void  wvesa_cls (short color)
  897. void  wvesa_putpixel (short x, short y)
  898. int   wvesa_getpixel (short x, short y)
  899. void  wvesa_line (short x, short y, short x2, short y2)
  900. void  wvesa_hline (short x, short y, short x2)
  901. void  wvesa_bar (short x, short y, short x2, short y2)
  902. void  wvesa_rectangle (short x, short y, short x2, short y2)
  903. void  wvesa_copyscreen (short sx, short sy, short sx2, short sy2, block src,
  904.             short dx, short dy, short method)
  905. block wvesa_newblock (short sx, short sy, short sx2, short sy2)
  906. void  wvesa_putblock (short dx, short dy, block src, short method)
  907. void  wvesa_outtextxy (short x, short y, wgtfont fnt, char *printit)
  908. void  wvesa_xorline (short x, short x2, short y)
  909.  
  910.  
  911.  
  912. WCOMM_WC.LIB
  913. ------------
  914.  
  915. int wlink_answer(void)
  916. - Waits for a call, and connects when a ring occurs.
  917.  
  918.  
  919. int wlink_dial(char *dialstring)
  920. - Dials a number.
  921.  
  922.  
  923. void wlink_flush_incoming(void)
  924. - Flushes the incoming communications buffer.
  925.  
  926.  
  927. void wlink_flush_outgoing(void)
  928. - Flushes the outgoing communications buffer.
  929.  
  930.  
  931. void wlink_get_uart(void)
  932. - Finds out what kind of UART is present.
  933.  
  934.  
  935. void wlink_getvector(void)
  936. - Finds out which interrupt vector to use for communications.
  937.  
  938.  
  939. void wlink_hangup_modem(void)
  940. - Sens the hangup string to the modem.
  941.  
  942.  
  943. int wlink_initmodem(void)
  944. - Sends the modem initialization string.
  945.  
  946.  
  947. void wlink_initport(void)
  948. - Initializes a communications session.
  949.  
  950.  
  951. void wlink_modemcommand(char *str)
  952. - Sends a command to the modem.
  953.  
  954.  
  955. int wlink_modemresponse(char *resp)
  956. - Reads a response from the modem.
  957.  
  958.  
  959. short wlink_read_byte(void)
  960. - Reads a single byte from the incoming data buffer.
  961.  
  962.  
  963. void wlink_shutdownport(void)
  964. - Closes a communications session.
  965.  
  966.  
  967. void wlink_write_buffer(char *buffer, unsigned int count)
  968. - Sends a number of bytes over the communications link.
  969.  
  970.